#include "start.h"
#include <QPushButton>


start::start(QWidget *parent) : QMainWindow(parent)
{
    this->setGeometry(680,240,1200,1200);
    QPushButton *startBtn=new QPushButton;
    QPushButton *helpBtn=new QPushButton;
    QPushButton *exitBtn=new QPushButton;
    c=new chess;
    h=new help;


    startBtn->setFixedSize(200,100);
    startBtn->move(500,400);
    startBtn->setParent(this);
    startBtn->setText("开始");
    connect(startBtn,&QPushButton::clicked,[=](){
        this->hide();
        c->show();
    });

    helpBtn->setFixedSize(200,100);
    helpBtn->move(500,550);
    helpBtn->setParent(this);
    helpBtn->setText("帮助");
    connect(helpBtn,&QPushButton::clicked,[=](){

        h->show();

    });

    exitBtn->setFixedSize(200,100);
    exitBtn->move(500,700);
    exitBtn->setParent(this);
    exitBtn->setText("退出");
    connect(exitBtn,&QPushButton::clicked,[=](){
        this->hide();
    });



}
